

myGrid = ds_grid_create( 256, 256 );

// Given input point P
// look at each surrounding grid point.

// For each surrounding grid point Q
// Create pseudo random gradient vector G

// Compute inner product of G * (P - Q)
// This gives 

// Cross fade between them with 3t^2-2t^3
